<script setup lang="ts">
const router = useRouter()

function handleChooseTrip(type: 'normal' | 'intercity') {
  router.push({
    name: 'chooseTrip',
    params: { type },
  })
}
</script>

<template>
  <view class="bg-white">
    <ListCell label="叫车电子发票" @tap="handleChooseTrip('normal')">
      <image
        class="h-25rpx w-13rpx"
        src="@/static/images/cheveron-right.png"
      />
    </ListCell>
    <ListCell label="城际电子发票" @tap="handleChooseTrip('intercity')">
      <image
        class="h-25rpx w-13rpx"
        src="@/static/images/cheveron-right.png"
      />
    </ListCell>
  </view>
</template>

<route lang="yaml">
name: 'chooseInvoiceType'
style:
  navigationBarTitleText: '选择开票类型'
</route>
